package com.engine4cloud.tdf.supervision.dto.update;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 实地查访
 *
 * @author wenjie
 * @date 2024-05-30 12:02:59
 */
@Data
@Schema(description = "实地查访-请求对象")
public class RcglInvestigateUpdateDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 查访时间
     */
    @Schema(description = "查访时间", example = "2024-05-01 00:00:00")
    @NotNull(message = "查访时间不能为空")
    private LocalDateTime cfsj;

    /**
     * 工作人员
     */
    @Schema(description = "工作人员", example = "张三")
    @NotBlank(message = "工作人员不能为空")
    private String gzry;

    /**
     * 查访过程说明
     */
    @Schema(description = "查访过程说明")
    @NotBlank(message = "查访过程说明不能为空")
    private String cfgcsm;

    /**
     * 佐证材料
     */
    @Schema(description = "法律文书", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    private List<JzdxFileDTO> instrumentList;
}